package com.youkeyi.ddy.cloud.common.api.basic.crm.source;

import com.youkeyi.ddy.cloud.common.api.basic.crm.source.dto.CrmSourceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * CrmSourceCloudService
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-CRM", fallback = CrmSourceCloudServiceFallback.class)
@RequestMapping("/crm/source")
public interface CrmSourceCloudService {

    /**
     * 查询来源渠道列表.
     *
     * @param param the param
     * @return the source list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract CrmSourceListCloudDto query(@RequestBody CrmSourceQueryCloudParam param);

    /**
     * 新增来源渠道.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody CrmSourceCreateCloudParam param);

    /**
     * 编辑来源渠道.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody CrmSourceUpdateCloudParam param);

    /**
     * 删除来源渠道.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody CrmSourceDeleteCloudParam param);
    
}
